<table class="normaltable">
	<tr class="selectarea">
		<td class="t1"></td>
			<td><input name="text" type="text" /></td>
			<td><?php echo $this->formSelect('task_status', $this->filter['task_status'], null, $this->entites['status']) ?></td>
			<td><?php echo $this->formSelect('task_prior', $this->filter['task_prior'], null, $this->entites['prior']) ?></td>
			<td><input name="text" type="text" /></td>
			<td class="title"><input name="text" type="text" class="title" /></td>
			<td><?php echo $this->formSelect('request_id', $this->filter['request_id'], null, $this->entites['requester']) ?></td>
			<td><?php echo $this->formSelect('manager_id', $this->filter['manager_id'], null, $this->entites['manager']) ?></td>
			<td><?php echo $this->formSelect('developer_id', $this->filter['developer_id'], null, $this->entites['resource']) ?></td>
			<td></td>
			<td><?php echo $this->formSelect('is_delay', 0, null, $this->entites['delay']) ?></td>
			<td></td>
		<td class="sub"></td>
	</tr>		
	<tr class="tit">
		<td class="t1"></td>
			<td>ID</td>
			<td>Status</td>
			<td>Prior</td>
			<td>Property</td>
			<td class="title">Title</td>
			<td>Requester</td>
			<td>PM</td>
			<td>Resource</td>
			<td>%</td>
			<td>Delay?</td>
			<td>Update</td>
			<td>Sub</td>
	</tr>
	<?php echo $this->task_content; ?>
</table>
<script type="text/javascript" src="/js/mootools.js"></script>
<script type="text/javascript" src="/js/task.js"></script>
<script type="text/javascript">
/////////////////////////////////////////////////////
// search select from
var request_uri = '<?php echo $this->filter_url;?>?t='+(new Date()).getTime();
['task_status','task_prior','request_id','manager_id','developer_id'].each(function(item, index){
	$(item).addEvent('change', function(e){
		$('loadingbox').setStyle('display', 'block');
		new Ajax(request_uri, {
			method: 'get',
			data: Object.toQueryString({
				k: item,
				v: $(item).value
			}),
			onComplete: function(){
				if ('success' == this.response.text) {
					redirect('<?php echo $this->base_url;?>');
				}
			}
		}).request();
	});
});
</script>